<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundleFuncionario.ViewFuncionarioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <p:messages />
            </h:panelGroup>
                    <!--<h:outputText value="#{bundleFuncionario.ViewFuncionarioLabel_entrada}"/>-->
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundleFuncionario.ViewFuncionarioLabel_idFuncionario}"/>
                    <h:inputText disabled="true" readonly="true" value="#{funcionarioController.selected.idFuncionario}" title="#{bundleFuncionario.ViewFuncionarioTitle_idFuncionario}"/>
                    <h:outputText value="#{bundleFuncionario.ViewFuncionarioLabel_nome}"/>
                    <h:inputText disabled="true" readonly="true" value="#{funcionarioController.selected.nome}" title="#{bundleFuncionario.ViewFuncionarioTitle_nome}"/>
                    <h:outputText value="#{bundleFuncionario.ViewFuncionarioLabel_cpf}"/>
                    <h:inputText disabled="true" readonly="true" value="#{funcionarioController.selected.cpf}" title="#{bundleFuncionario.ViewFuncionarioTitle_cpf}"/>
                    <h:outputText value="#{bundleFuncionario.ViewFuncionarioLabel_rg}"/>
                    <h:inputText disabled="true" readonly="true" value="#{funcionarioController.selected.rg}" title="#{bundleFuncionario.ViewFuncionarioTitle_rg}"/>
                    <h:outputText value="#{bundleFuncionario.ViewFuncionarioLabel_endereco}"/>
                    <h:inputText disabled="true" readonly="true" value="#{funcionarioController.selected.endereco}" title="#{bundleFuncionario.ViewFuncionarioTitle_endereco}"/>
                    <h:outputText value="#{bundleFuncionario.ViewFuncionarioLabel_email}"/>
                    <h:inputText disabled="true" readonly="true" value="#{funcionarioController.selected.email}" title="#{bundleFuncionario.ViewFuncionarioTitle_email}"/>
                    <h:outputText value="#{bundleFuncionario.ViewFuncionarioLabel_telefone}"/>
                    <h:inputText disabled="true" readonly="true" value="#{funcionarioController.selected.telefone}" title="#{bundleFuncionario.ViewFuncionarioTitle_telefone}"/>
                </h:panelGrid>
                <br />
                <p:commandButton action="#{funcionarioController.destroyAndView}" value="#{bundleFuncionario.ViewFuncionarioDestroyLink}"
                               ajax="false">
                    <p:confirmDialog message="Deseja realmente excluir?" severity="alarm"
                                     noLabel="Não"
                                     yesLabel="Sim" fixedCenter="true" modal="true"
                                     width="200px" height="150px" header="Alerta" />
                </p:commandButton>
                <br />
                <br />
                <h:commandButton action="Edit" value="#{bundleFuncionario.ViewFuncionarioEditLink}"/>
                <br />
                <h:commandButton action="#{funcionarioController.prepareCreate}" value="#{bundleFuncionario.ViewFuncionarioCreateLink}" />
                <br />
                <h:commandButton action="#{funcionarioController.prepareList}" value="#{bundleFuncionario.ViewFuncionarioShowAllLink}"/>
                <br />
                <br />
                <h:commandButton value="#{bundleFuncionario.ViewFuncionarioIndexLink}" action="/restrito/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
